package edu.zut.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;

//订单实体

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders {

    private Integer id;
    private Integer user_id;
    private String number;
    private LocalDate createTime;
    private String note;

    //订单 和 用户 一对一的关系
    private UserInfo info;

    //订单和商品  多对多
    //订单和订单详情   一对多
    private List<OrderDetail> orderDetailList;

}
